package com.hp;

import com.hp.item.modular.*;
import net.minecraft.world.item.BlockItem;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.Item;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.material.Material;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

public class TetraOrganRegistry {
    public static final DeferredRegister<Block> BLOCKS =
            DeferredRegister.create(ForgeRegistries.BLOCKS, TetraOrgan.MODID);

    public static final DeferredRegister<Item> ITEMS =
            DeferredRegister.create(ForgeRegistries.ITEMS, TetraOrgan.MODID);

//    /* ----------------  示例方块  ---------------- */
//    public static final RegistryObject<Block> EXAMPLE_BLOCK =
//            BLOCKS.register("example_block", () -> new Block(BlockBehaviour.Properties.of(Material.STONE)));
//
//    public static final RegistryObject<Item> EXAMPLE_BLOCK_ITEM =
//            ITEMS.register("example_block",
//                    () -> new BlockItem(EXAMPLE_BLOCK.get(), new Item.Properties().tab(CreativeModeTab.TAB_BUILDING_BLOCKS)));

    // 肌肉
    public static final RegistryObject<Item> FLESH = ITEMS.register("muscle", Muscle::new);
    // 心脏
    public static final RegistryObject<Item> HEART = ITEMS.register("heart", Heart::new);
    // 肠
    public static final RegistryObject<Item> INTESTINES = ITEMS.register("intestine", Intestine::new);
    // 肾脏
    public static final RegistryObject<Item> KIDNEYS = ITEMS.register("kidney", Kidney::new);
    // 肝脏
    public static final RegistryObject<Item> LIVER = ITEMS.register("liver", Liver::new);
    // 肺脏
    public static final RegistryObject<Item> LUNG = ITEMS.register("lung", Lung::new);
    // 肋骨
    public static final RegistryObject<Item> RIB = ITEMS.register("rib", Rib::new);
    // 脊柱
    public static final RegistryObject<Item> SPINE = ITEMS.register("spine", Spine::new);
    // 脾脏
    public static final RegistryObject<Item> SPLEEN = ITEMS.register("spleen", Spleen::new);
    // 胃
    public static final RegistryObject<Item> STOMACH = ITEMS.register("stomach", Stomach::new);
}
